import com.dubbo.domain.Order;import com.dubbo.service.ShopService;import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXmlApplicationContext;/** * Created by Administrator on 2020-3-3. */public class ConsumeApplication {    public static void main(String[] args) {      String config="main-consume.xml";        ApplicationContext ctx = new ClassPathXmlApplicationContext(config);        //从容器中获取业务对象        ShopService shopService = (ShopService) ctx.getBean("shopService");        Order order = shopService.buyGoods(1,"pad",5000,1);        System.out.println(order.toString());    }}